import request from '@/utils/request'

// 查询物料领用计划列表
export function listPlanItemGet(query) {
  return request({
    url: '/business/planItemGet/list',
    method: 'get',
    params: query
  })
}

// 查询物料领用计划详细
export function getPlanItemGet(id) {
  return request({
    url: '/business/planItemGet/' + id,
    method: 'get'
  })
}

// 新增物料领用计划
export function addPlanItemGet(data) {
  return request({
    url: '/business/planItemGet',
    method: 'post',
    data: data
  })
}
//生成出库单
export function addScChuKu(id) {
  return request({
    url: '/business/planItemGet/addScChuKu/' + id,
    method: 'get'
  })
}
// 修改物料领用计划
export function updatePlanItemGet(data) {
  return request({
    url: '/business/planItemGet',
    method: 'put',
    data: data
  })
}

// 删除物料领用计划
export function delPlanItemGet(id) {
  return request({
    url: '/business/planItemGet/' + id,
    method: 'delete'
  })
}
